import 'package:gameplay_flutter/generated/json/base/json_field.dart';
import 'package:gameplay_flutter/generated/json/upload_video_res_entity.g.dart';
import 'dart:convert';
export 'package:gameplay_flutter/generated/json/upload_video_res_entity.g.dart';

@JsonSerializable()
class UploadVideoResEntity {
  late String playAuth = '';
  late String videoId = '';
  String snapUrl = "";
  String gifUrl = "";
  String url = '';
  int duration = 0;
  int width = 0;
  int height = 0;

  UploadVideoResEntity();

  factory UploadVideoResEntity.fromJson(Map<String, dynamic> json) =>
      $UploadVideoResEntityFromJson(json);

  Map<String, dynamic> toJson() => $UploadVideoResEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
